home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / tsbat30.zip / loop.bat < prev    next >
DOS Batch File  |  1991-11-09  |  719b  |  22 lines

  1. @echo off
  2.  
  3. rem An index loop demonstration by prof. Timo Salmi 9-Nov-1991
  4.  
  5. rem The purpose of this batch is simply to demonstrate that index
  6. rem loops can be built with batch techniques.  The loop below will
  7. rem be performed 50 times.
  8.  
  9. rem If you get an "Out of environment space" message, increase your
  10. rem environment space by using shell configuration in config.sys:
  11. rem MsDos 3.30 example: shell=c:\bin\command.com /e:1024 /p
  12.  
  13. set _i=
  14. :_loop
  15. set _i=%_i%x
  16. echo %_i%
  17. rem                      1         2         3          4        5
  18. rem             123456789 123456789 123456789 123456789 123456789
  19. if not "%_i%"=="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" goto _loop
  20. set _i=
  21. echo on
  22.